<%@page import="blog.beans.Comment"%>
<%@page import="blog.beans.Post"%>
<%@page import="blog.beans.User"%>
<%@page import="blog.CommentController"%>
<%@page import="blog.PostController"%>
<%@page import="blog.UserController"%>
<%@page import="java.util.List"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<div id="main">
    <div id="content">
        <%
            String action = request.getParameter("action");
            if("addPost".equals(action)) {
                %> <jsp:include page="addPost.jsp" /> <%
            } else if("addUser".equals(action)) {
                %> <jsp:include page="addUser.jsp" /> <%
            } else if("login".equals(action)) {
                %> <jsp:include page="login.jsp" /> <%
            } else if("logout".equals(action)) {
                %> <jsp:include page="logout.jsp" /> <%
            } else {
                %> <jsp:include page="showPost.jsp" /> <%
            }
        %>
    </div>
    <jsp:include page="sidebar.jsp" />
</div>